package cn.wolfcode.service;

import cn.wolfcode.domain.Vote;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IVoteService {
    void save(Vote vote);
    void delete(Long id);
    void update(Vote vote);
    Vote get(Long id);
    List<Vote> listAll();
    // 分页查询的方法
    PageInfo<Vote> query(QueryObject qo);

    void inputVoteEmployee(@Param("voteId") Long voteId, @Param("id") Long id, @Param("ovteItemId") Long ovteItemId);

    List<Vote> countVoteEmployee(Long voteId);
    List<Vote> check(Long employeeId);
}
